#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QThread>
#include "udpinterface.h"

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();
    QString modifyMsg(QString text);

public slots:
    void startSendMsgSlot();
    void bindNetworkSlot();
    void stopSendMsgSlot();


private:
    Ui::MainWindow *ui;
    QThread* pThread;
    UdpInterface* pUdpObject;


signals:
    void stopSendSignal();
};
#endif // MAINWINDOW_H
